Skip to content

Fix issue with 1.8.7 and upcase#418

Merged
underscorgan merged 1 commit intopuppetlabs:masterfrom
cyberious:UpcaseHash
Feb 26, 2015
Merged

Fix issue with 1.8.7 and upcase#418
underscorgan merged 1 commit intopuppetlabs:masterfrom
cyberious:UpcaseHash

Conversation

@cyberious
Copy link
Copy Markdown
Contributor

No description provided.

underscorgan pushed a commit that referenced this pull request Feb 26, 2015
Fix issue with 1.8.7 and upcase
@underscorgan underscorgan merged commit cd65680 into puppetlabs:master Feb 26, 2015
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not instead do:

result[k.upcase] = v.collect { |p| p.upcase}

This results in significantly object creations.

Additionally, this will fail if v is a nested array or a hash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants